const { router } = require('../../koa/koa-main')
const { banUser } = require('../../services/user')

router.post('/banUser', async (ctx, next) => {
  const { data } = await banUser(ctx.request.body)
  ctx.response.body = data
  await next()
})
